import server from "@/utils/request"
//获取组织架构数据
export function getdepartment(){
 return  server({
    url:'/company/department',
    method:'get',
  })
}
//获取部门负责人数据
export function getmanagerlist(){
  return  server({
     url:'/sys/user/simple',
     method:'get',
   })
 }
 //新增部门接口
 export function adddeptment(data){
  return  server({
     url:'/company/department',
     method:'post',
     data
   })
 }
 //根据id获取部门信息
 export function getdeptdata(id){
  return  server({
     url:`/company/department/${id}`,
     method:'get',
   })
 }
 //修改部门信息
 export function updatadept(data){
  return  server({
     url:`/company/department/${data.id}`,
     method:'put',
     data,
   })
 }
  //删除部门信息
  export function deladept(id){
    return  server({
       url:`/company/department/${id}`,
       method:'delete',
     })
   }